const express = require('express');
const router = express.Router();
router.get('/', (req, res) => {
  res.json([{username:'admin', password:'123456'}])
})
router.post('/login', (req, res) => {
  const token ="huoqingzu"
  setTimeout(() => {
    res.json({token})
  }, 2000);
})
export default  router;